package com.zpp.system.domain.question.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

@Data
public class QuestionDetailVO {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long questionId;     //主键，不使用自增，通过mybatis-plus提供的雪花算法来设置

    private String title;        //题目标题

    private Integer difficulty;  //困难等级 1:简单、2:中等、3:困难

    private Long timeLimit;      //时间限制

    private Long spaceLimit;     //空间限制

    private String content;      //题目内容

    private String questionCase; //题目用例

    private String defaultCode;  //默认代码

    private String mainFunc;     //main函数
}
